package com.example.demo.event;

import com.example.demo.domain.dto.Email;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * @Description : 自定义邮件事件
 * @Author : Bruce Lee
 * @CreateTime : 2024/3/27
 */

@Getter
public class UserMailEvent extends ApplicationEvent {

    private Email email;

    public UserMailEvent(Object source, Email email) {
        super(source);
        this.email = email;
    }
}
